Syntax

DC SET PLANET DIRECTION Planet Index, X, Y, Z

Parameters

int: Planet Index

Which planet - must have been created using SET PLANET IMAGE.

float: X,Y,Z

The co-ordinate values. The direction will be post-normalized, so any values can be used as long as at least one of x, y, or z is non-zero.

Returns

This command does not return a value.

Example Code

rem Add the moon
load image "Moon.png",11
dc set planet image 1,11,.2
dc set planet direction 1,0.0,0.2,1.0

See also

DC SET PLANET IMAGE.htm
DarkCLOUDS Commands Menu
Index